package com.hams.demo.system.entity.dto;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class DepartmentDTO {

	private Long id;
	private String level;
	private String name;
	private String higherName;
	private String telephone;
	private String address;
	@DateTimeFormat(pattern="yyyy/MM/dd") 
	private Date establish;
	private int usersCount;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getHigherName() {
		return higherName;
	}
	public void setHigherName(String higherName) {
		this.higherName = higherName;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	@JsonFormat(pattern="yyyy/MM/dd", timezone="GMT+8")
	public Date getEstablish() {
		return establish;
	}
	public void setEstablish(Date establish) {
		this.establish = establish;
	}
	public int getUsersCount() {
		return usersCount;
	}
	public void setUsersCount(int usersCount) {
		this.usersCount = usersCount;
	}
	
}
